import { Entity, Column, Unique, PrimaryGeneratedColumn } from 'typeorm';
@Entity('menu')
export class Menu {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  // @Unique(['path'])
  path: string;

  @Column()
  @Unique(['name']) //唯一值，不能重复
  name: string;

  @Column({ default: null })
  reidrect: string;

  @Column()
  meta: string;

  @Column()
  pid: number;

  @Column({ default: 1 })
  actvie: number; //1-可用 0-不可用
}
